<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/jquery.js"></script>
    <style>
        .box{
            width: 200px;
            height: 200px;
        }
    </style>
</head>
<body>
    <div class="box">1</div>
    <div class="box">2</div>
    <script>
        $(function(){
            $(".box")[0].style.backgroundColor="yellow"
            $(".box")[1].style.backgroundColor="yellow"

            $(".box").get(0).style.backgroundColor="pink"
            $(".box").get(1).style.backgroundColor="pink"

            var oBoxs=document.querySelectorAll(".box");
            $(oBoxs).css("backgroundColor","skyblue")
        })
    </script>
</body>
</html>